#pragma once


#include "OAL/al.h"
#include "OAL/alc.h"

#ifndef NULL
#define NULL 0
#endif

#pragma comment(lib, "lib\\OpenAL32.lib")


class COpenAL
{
	protected:
		ALCdevice*		m_device;
		ALCcontext*		m_context;

		char*	m_deviceName;
		
	public:
		COpenAL();
		~COpenAL();


		bool GenerateBuffers(ALsizei _bufferNum, ALuint *_buffers);
		bool GenerateSources(ALsizei _sourceNum, ALCuint *_sources);

		bool ReleaseBuffers(ALsizei _bufferNum, ALuint *_buffers);
		bool ReleaseSources(ALsizei _sourceNum, ALuint *_sources);
};